 public class SchoolBook2 extends Book2
 {
    private int ageLevel;

    //------------------------------------------------------
    // Constructor: Sets up the Schoolbook with the 
    // speicifed number of pages and age level (assumed 
    // tobe between 4 and 16 inclusive).
    //------------------------------------------------------
    public SchoolBook2(int numPages, int age)
    {
       super(numPages);
       ageLevel = age;
    }

    //------------------------------------------------------
    // Returns a string that describes the age level.
    //------------------------------------------------------
    public String level()
    {
       if (ageLevel <= 6)
          return "Pre-school";
       else 
          if (ageLevel <= 9)
             return "Early";
          else
             if (ageLevel <= 12)
                return "Middle";
             else 
                return "Upper";
    }
 }
